package com.jjy.service.impl;

import com.jjy.dao.OrderDao;
import com.jjy.pojo.Order;
import com.jjy.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("orderService")
public class OrderServiceImpl implements OrderService{
    @Resource
    private OrderDao orderDao;

    @Override
    public Order getOrderById(Long id) {
        return null;
    }

    @Override
    public List<Order> getOrderByNo(Long number) {
        return null;
    }

    @Override
    public List<Order> getAllOrder() {
        return orderDao.getAllOrder();
    }

    @Override
    public List<Order> getOrderByParams(Order order) {
        return null;
    }

    @Override
    public int createOrder(Order order) {
        return orderDao.createOrder(order);
    }

    @Override
    public int updateOrder(Order order) {
        return 0;
    }

    @Override
    public Long getMaxOrderNo() {
        return orderDao.getMaxOrderNo();
    }
}
